Domain Name System Security Extensions (DNSSEC) is a security system created to add digital signatures to DNS entries. It ensures that the "phone book of the internet" cannot be forged by hackers. 🛡️
To understand DNSSEC, think of Wax Seals used on ancient royal letters.
When you search for a website, a DNS request is made to find the IP address of that domain.
example.com → 10.10.10.10An attacker might try to alter this mapping to send you to a fake site:
example.com → 2.2.2.2 (A malicious server)To prevent this, DNSSEC uses Asymmetric Encryption. Every domain owner has a Private Key (kept secret) and a Public Key (shared with everyone). The DNS mapping is signed using that Private Key to create a digital signature called an RRSIG (Resource Record Signature).
| Before DNSSEC (Unsecured) | After DNSSEC (Secured) |
|---|---|
example.com → 10.10.10.10 |
example.com → 10.10.10.10 |
RRSIG (Signature): AB23JKD432K |
In a modern secure DNS reply, the information is "wax sealed."
A hacker could send a fake Public Key, too. To prevent this, the computer uses a system called the Chain of Trust.
google.com) carries its own DNSKEY. The Recursive Server (the validator) asks: "How do I know this key is real?" The reply says: "Don't ask me, ask my parent!"google.com, which is the manager of the .com extension. This manager holds a DS Record (Delegation Signer). The Manager says: "I guarantee this key is real; I am the manager of the .com realm."